import React, { Component } from 'react'
import { BrowserRouter, Route , Switch } from 'react-router-dom'

import Login from './pages/login/login.jsx'
import Admin from './pages/admin/admin.jsx'


export default class app extends Component {
    render() {
        return (
            <BrowserRouter>
                <Switch>
                    <Route exact path="/" component={Admin}></Route>
                    <Route exact path="/login" component={Login}></Route>
                </Switch>
            </BrowserRouter>
        )
    }
}
